<template>
	<u-modal v-if="visible" :value="visible" :show-title="false" :content="lang_setting[value + 'Tips']"
		show-cancel-button :cancel-text="lang_common.cancel" :confirm-text="lang_setting.toOpen"
		:confirm-color="'#FD1E43'" @confirm="openSettingAction" z-index="9999999" @cancel="$emit('input', false)">
	</u-modal>
</template>

<script>
	import permision from "@/utils/permission.js"
	export default {
		props: {
			// location定位 camera相机 phone电话
			value: {
				default: ''
			}
		},
		computed: {
			visible() {
				return !!this.value
			}
		},
		methods: {
			// 跳转到设置进行设置定位
			openSettingAction() {
				permision.gotoAppPermissionSetting()
				this.$emit('input', '')
			}
		}
	}
</script>

<style>
</style>